package com.aaa.day117.demo3;

import java.security.PublicKey;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月07日13:27
 */
public class Test {
    public static void main(String[] args) {

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Singleton.getInstance());
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Singleton1.getInstance());
            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Singleton2.getInstance());
            }
        }).start();
    }
}
